home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Games / Game Sample Code / ZAM 1.0a13 / CoreSource / Main.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-16  |  636 b   |  45 lines  |  [TEXT/KAHL]

  1. /*
  2.     9-30-92  • Brigham Stevens
  3.     --------------------------
  4.  
  5.     main program for Slim.
  6.     Change Drawing.c to effect window contents.
  7.  
  8. */
  9.  
  10.  
  11. #include "EventLoop.h"
  12. #include "MenuDispatch.h"
  13. #include "CoreGlobals.h"
  14. #include "ZAM.h"
  15. #include "GameSounds.h"
  16.  
  17.  
  18. Boolean gColorQD;
  19.  
  20. void main(void)
  21. {
  22.     
  23.     /* Expand the heap and make the Mac go */
  24.     MaxApplZone();
  25.     InitToolBox(kNumMoreMasters);
  26.     UnloadSeg(InitToolBox);
  27.  
  28.  
  29.     /* Create the menus */
  30.     BuildMenuBars();
  31.     InstallAppleEvents();
  32.     InitGame();
  33.  
  34.     
  35.     /* Run until Quit is selected */
  36.     while(!gDone) {
  37.         MainEvent();
  38.         IdleGameWindow();
  39.     }    
  40.  
  41.     FreeSounds();
  42.     SendGoodBye();
  43.     KillAllXThingTasks();
  44. }
  45.